package net.bitdixit.ywu.info;

import net.bitdixit.ywu.R;
import net.bitdixit.ywu.Util;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class InformationActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.information);
		WebView mWebView = (WebView) findViewById(R.id.infoWebView);
		String content;
		try {
			content = Util.readString(getResources().getAssets()
						.open("information.html"));
		} catch (Exception e) {
			content = "<html><body>Cannot load info:"+e.getMessage()+"</body></html>";
		}
		mWebView.loadData(content,"text/html", "utf-8");
	}
}
